public class h_27 {
    public static void main(String[] args) {
        int i;
        for (int x = 2; x <= 100; x++) {

            for (i = 2; i <= x; i++){
                if (x % i == 0)
                    break;
            }
            if (i >= x)
                System.out.println(x);
        }

    }
}
